package com.foreknow.oppExer1.exer6;

/**
 * @author shkstart
 * @create 2021-07-28 14:13
 */
public class Rect extends Shape {
    private double a,b ;//长宽

    public void setA(double a) {
        this.a = a;
    }

    public void setB(double b) {
        this.b = b;
    }

    @Override
    public double getArea() {
        return a*b;
    }
}
